package com.ymm.platform.dao.mapper;

import com.ymm.platform.api.constants.dto.LltorderDetailsDTO;
import com.ymm.platform.api.constants.dto.OrderShowDTO;
import com.ymm.platform.api.constants.dto.QueryDriverDTO;
import com.ymm.platform.api.constants.entity.DriverEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Company: CUG
 * @Description: TODO
 * @Author: chencong
 * @Date: 2022-08-13 16:18
 **/
@Mapper
public interface QueryDriverMapper {
    List<DriverEntity> queryAllDriver();

    List<DriverEntity> queryDriverOnValid();

    List<DriverEntity> queryDriverOnName(@Param("driverName") String driverName);

    List<DriverEntity> queryDriverOnDriverIdNum(@Param("driverIdNum") String driverIdNum);

    List<DriverEntity> queryDriverOnDriverPhone(@Param("driverPhone") String driverPhone);

    Long queryDriverCompleteOrder(@Param("driverId")Long driverId);

    List<LltorderDetailsDTO> queryDriverCompleteOrderList(@Param("driverId")Long driverId);

    Long queryDriverUncompleteOrder(@Param("driverId")Long driverId);

    List<LltorderDetailsDTO> queryDriverUncompleteOrderList(@Param("driverId")Long driverId);

    Integer queryDriverTotalIncome(@Param("driverId")Long driverId);

    List<DriverEntity> queryDriverOnConditionDTO(QueryDriverDTO queryDriverDTO);

}
